package com.rede.didiok.rank;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.oas.annotations.EnableOpenApi;

@EnableTransactionManagement
@EnableOpenApi
@EnableCaching
@EnableRabbit
@EnableRedisHttpSession  //整合redis作为session存储
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients(basePackages = {"com.rede.didiok.common.feign"})
@ComponentScan(basePackages = {
//        "com.plumelog",
		"com.rede.didiok.common.config",
        "com.rede.didiok.common.fallback",
		"com.rede.didiok.common.annotion",
		"com.rede.didiok.common.utils",
		"com.rede.didiok.common.enums",
		"com.rede.didiok.common.service",
		"com.rede.didiok.common.executor",
		"com.rede.didiok.rank",
//		"com.rede.didiok.common.convert",
//		"com.moxi.mogublog.xo.executor",
//		"com.moxi.mogublog.xo.utils",
//		"com.moxi.mogublog.xo.service",
//		"com.meetc.mogublog.security.**",
})
public class DidiokRankApplication {

	public static void main(String[] args) {
		SpringApplication.run(DidiokRankApplication.class, args);
	}

}
